package cn.hema.model;

import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Message {
    public String tag;
    private Long id;
    private Long bookId;
    private Long borrowerId;
    private LocalDateTime borrowDate;
    private LocalDateTime returnDate;

    public Message(BorrowRecord borrowRecord) {
        id = borrowRecord.getId();
        bookId = borrowRecord.getBookId();
        borrowerId = borrowRecord.getBorrowerId();
        borrowDate = borrowRecord.getBorrowDate();
        returnDate = borrowRecord.getReturnDate();
    }
}
